package com.yc.damai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 大麦商城-商品分类表-43
 * </p>
 *
 * @author lpt
 * @since 2024-09-08
 */
@Getter
@Setter
@TableName("dm_category")
public class DmCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号, 自增列
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 分类名称
     */
    @TableField("cname")
    private String cname;

    /**
     * 父id 关联本表 id (自关联)
     */
    @TableField("pid")
    private Integer pid;

    @TableField(exist = false)
    private List<DmCategory> dmCategoryList;
}
